#include "SparkEditorToolBarEdit.h"


SparkEditorToolBarEdit::SparkEditorToolBarEdit()
	: SparkEditorToolBar()
{

}

SparkEditorToolBarEdit::SparkEditorToolBarEdit(wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style)
	: SparkEditorToolBar(parent, id, pos, size, style)
{
	SetToolBitmapSize(wxSize(32, 32));

	wxBitmap UndoBitmap(SparkEditorGlobal::GetDataPath() + wxT("icons/undo.png"));
	AddTool(IDTOOLBAR_EDIT_UNDO, wxT("Undo"), UndoBitmap);

	wxBitmap RedoBitmap(SparkEditorGlobal::GetDataPath() + wxT("icons/redo.png"));
	AddTool(IDTOOLBAR_EDIT_REDO, wxT("Redo"), RedoBitmap);

	this->AddSeparator();

	wxBitmap SettingsBitmap(SparkEditorGlobal::GetDataPath() + wxT("icons/settings.png"));
	AddTool(IDTOOLBAR_EDIT_SETTINGS, wxT("Settings"), SettingsBitmap);

	wxBitmap PreferencesBitmap(SparkEditorGlobal::GetDataPath() + wxT("icons/preferences.png"));
	AddTool(IDTOOLBAR_EDIT_PREFERENCES, wxT("Preferences"), PreferencesBitmap);

	Realize();
}

SparkEditorToolBarEdit::~SparkEditorToolBarEdit()
{

}

void SparkEditorToolBarEdit::ConnectEvent(void)
{
	Connect(IDTOOLBAR_EDIT_UNDO, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler(SparkEditorToolBarEdit::OnToolBarUndo));
	Connect(IDTOOLBAR_EDIT_REDO, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler(SparkEditorToolBarEdit::OnToolBarRedo));
	Connect(IDTOOLBAR_EDIT_SETTINGS, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler(SparkEditorToolBarEdit::OnToolBarSettings));
	Connect(IDTOOLBAR_EDIT_PREFERENCES, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler(SparkEditorToolBarEdit::OnToolBarPerferences));
}

void SparkEditorToolBarEdit::OnToolBarUndo(wxCommandEvent& event)
{

}

void SparkEditorToolBarEdit::OnToolBarRedo(wxCommandEvent& event)
{

}

void SparkEditorToolBarEdit::OnToolBarSettings(wxCommandEvent& event)
{

}

void SparkEditorToolBarEdit::OnToolBarPerferences(wxCommandEvent& event)
{

}